<?php
/**
 +----------------------------------------------------------
 * AX单发票列表
 +----------------------------------------------------------
 * Author:sunjing 
 +----------------------------------------------------------
 */
class invoice_finder_axorder{


    var $detail_invoice    = '发货单明细';

    function detail_invoice($id){

    	$render = app::get('invoice')->render();

    	$axinvoiceObj = app::get('invoice')->model('axorder');

    	$axorder_detail = $axinvoiceObj->dump(array('id'=>$id),'order_id');
    	$order_id = $axorder_detail['order_id'];

    	$items_list = kernel::single('invoice_order')->get_itemsByorder_id($order_id);
        $render->pagedata['items_list'] = $items_list;

    	return $render->fetch('admin/detail_invoice.html');
    }
}